<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="/deng/include/include-css.js"></script>
<title>设备基础信息编辑页面</title>
</head>
<body>
	<div class="m-portlet">
		<div class="m-portlet__head">
			<div class="m-portlet__head-caption">
				<div class="m-portlet__head-title">
					<span class="m-portlet__head-icon m--hide">
						<i class="la la-gear"></i>
					</span>
					<h3 class="m-portlet__head-text">
						编辑设备信息
					</h3>
				</div>
			</div>
		</div>
		<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" id="defaultForm" method="post">
			<div class="m-portlet__body">
				<div class="form-group m-form__group row" style="display:none;">
					<label class="col-md-1 col-form-label">设备id</label>
					<div class="col-md-3">
						<input class="form-control" type="hidden" name="device_id" id='device_id' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">设备编号</label>
					<div class="col-md-3">
						<input class="form-control" type="text" maxlength="32"  name="device_code" id='device_code' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">设备名称</label>
					<div class="col-md-3">
						<input class="form-control" type="text" maxlength="255"  name="name" id='name' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">简&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;写</label>
					<div class="col-md-3">
						<input class="form-control" type="text" maxlength="32"  name="short_name" id='short_name' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
					<div class="col-md-6">
						<textarea class="form-control" type="text" maxlength="255"  name="remarks" id='remarks' placeholder="请输入"></textarea>
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">桩&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
					<div class="col-md-3">
						<input class="form-control" type="text" maxlength="64"  name="build_pos" id='build_pos' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">桩号描述</label>
					<div class="col-md-3">
						<input class="form-control" type="text" maxlength="255"  name="build_pos_content" id='build_pos_content' placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">设备类型</label>
					<div class="col-md-3">
						<select class="form-control" name="device_type_id" id="device_type_id" placeholder="请选择">
							<option value="">请选择</option>
						</select>
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">生&nbsp;&nbsp;产&nbsp;商</label>
					<div class="col-md-3">
						<select type="text" class="form-control" name="oem_id" id="oem_id" onchange="getModelList(this.value)" placeholder="请选择">
							<option value="">请选择</option>
						</select>
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">型&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
					<div class="col-md-3">
						<select class="form-control" name="model_id" id="model_id" placeholder="请选择">
							<option value="">请选择</option>
						</select>
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">生产日期</label>
					<div class="col-md-2">
						<input class="form_datetime form-control" name="produce_date"  id='produce_date' placeholder="请选择时间">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">报废时间</label>
					<div class="col-md-2">
						<input class="form_datetime form-control" name="scrap_time"  id='scrap_time' placeholder="请选择时间">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label">位&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;置</label>
					<div class="col-md-2">
						<select class="form-control" name="device_location_id" id="device_location_id" placeholder="请选择">
							<option value="">请选择</option>
						</select>
					</div>
				</div>
			</div>
			<div class="m-portlet__foot m-portlet__no-border m-portlet__foot--fit">
				<div class="m-form__actions m-form__actions--solid">
					<div class="form-group m-form__group row">
						<div class="col-lg-6">
							<a class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" href="javascript:updateIotDevice()">保存</a>
							<a class="btn btn-secondary m-btn m-btn--custom m-btn--icon" href="javascript:goback()">返回</a>
						</div>
						<div class="col-lg-2">
							<a class="btn btn-secondary m-btn m-btn--custom m-btn--icon" href="javascript:resetAll('defaultForm')"><span><i class="fa fa-repeat"></i><span>重置</span></span></a>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</body>
<script type="text/javascript" src="/deng/include/include.js"></script>
<script type="text/javascript" src="/deng/view/monitor/iot-device/iot-device-update.js"></script> 
</html>
